import Vue from 'vue'
import Router from 'vue-router'
import HzMap from '../components/HzMap'
import home from '@/components/index'

//import login from  '@/components/login'
import login2 from  '@/components/login2'
import split from  '@/components/split-pane/split-pane.vue'
Vue.use(Router)


const routes=[
  {
    path: '/',
    name: 'login2',
    component: login2
  },
 /*  {
    path: '/',
    name: 'home',
    component: home,
    redirect: '/home',
  }, */
 /*  {
    path: '/login',
    name: 'login',
    component: login
  }, */
  {
    path: '/login2',
    name: 'login2',
    component: login2
  },
  {
    path: '/split',
    name: 'split',
    component: split
  },
  {
    path: '/home',
    name: 'home',
    component: home,
    meta: {
      requiresAuth: true
    }
  },
];
const router = new Router({
  routes
});

export default router;
